package com.gitee.deeround.jdbchelper.util;

import java.util.List;

public abstract class StringUtils {

    public static boolean isEmpty(Object obj) {
        return obj == null || obj.toString().length() == 0;
    }

    public static String join(List<String> strs, String s) {
        if (strs == null || strs.size() == 0) {
            return null;
        }
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < strs.size(); i++) {
            sb.append(strs.get(i));
            if (i < strs.size() - 1) {
                sb.append(s);
            }
        }
        return sb.toString();
    }

}
